package com.strato.deploy.common;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class XStreamCreator {

	public static XStream create(){
		XStream xstream=new XStream(new DomDriver("UTF-8"));
		xstream.alias("bundle", BundleInfo.class);
		xstream.alias("package", PackageInfo.class);
		xstream.alias("site", SiteInfo.class);
		xstream.addImplicitArray(SiteInfo.class, "bundles");
		return xstream;
	}
}
